package cn.jantd.modules.activiti.extract;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.segments.MergeSegments;


public class EntityWrapper<T> extends Wrapper {

    private T entity;

    public EntityWrapper(T entity){
        this.entity = entity;
    }

    public static <M> Wrapper<M> wrapper(M entity){
        return new EntityWrapper<M>(entity);
    }

    @Override
    public Object getEntity() {
        return this.entity;
    }

    @Override
    public MergeSegments getExpression() {
        return null;
    }

    @Override
    public String getSqlSegment() {
        return null;
    }
}
